<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>7 模板语法-表达式</title>
    <script src="js/vue.global.js"></script>
</head>
<body>
<div id="app">
    {{5+5}}<br>
    {{ ok ? 'YES' : 'NO' }}<br>
    {{ message.split('').reverse().join('') }}
    <div v-bind:id="'list-' + id">菜鸟教程</div>
</div>

<script>
    const app = {
        data() {
            return {
                ok: true,
                message: 'RUNOOB!!',
                id: 1
            }
        }
    }

    Vue.createApp(app).mount('#app')
</script>
</body>
</html>